package calculatorSim;

public class Division {
	
	//instance variables
	private double div;
	private double num1;
	private double num2;
	
	//constructor
	public Division(int x, int y){
		this.num1 = x;
		this.num2 = y;
		this.div = 0;
	}
	//add the numbers
	public double divNums(){
		this.div = this.num1 / this.num2;
		return this.div;
	}
	//display results
	public void showResults(){
		System.out.println("The quotient is: " + divNums());
	}

}
